<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ui_newprocessform.aspx.cs" Inherits="Private_Config_Workflow_ui_newprocessform" %>
<%@ Register TagPrefix="Flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />
	<link href="./localstyle.css" rel="stylesheet" type="text/css" />
</head>
<body class="nopad">
<form id="form1" runat="server">
<Flux:HostTable runat="server">

<Flux:Section runat="server">
<Flux:ShadePadBox runat="server" CssClass="infoarea">
	<asp:Label runat="server" ID="labHandler" CssClass="info" /><br/>
	<asp:Label runat="server" ID="labDefinition" CssClass="info" />
</Flux:ShadePadBox>
</Flux:Section>

<Flux:ValidationSummarySection runat="server" HeaderText="Please correct the following errors"/>

<Flux:Section runat="server" Title="Add Workflow Process">
<Flux:ShadePadBox runat="server">
	<table cellspacing="0" cellpadding="5" border="0" width="500">
	<tr><td nowrap="nowrap">
			Process Name:<%=Required%>
		</td>
		<td><asp:TextBox Runat="server" ID="ProcessName" Width="200px" style="width:200px"/></td>
	</tr>
	<tr><td>
		Rank / Importance:<%=Required%><br/>
		<span class="help">The process with the lowest rank will be executed first</span>
		</td>
		<td><asp:TextBox runat="server" ID="Rank" Width="50px" style="width:50px"/></td>
	</tr>
	<tr><td>Process Type:</td>
		<td><asp:DropDownList runat="server" ID="ProcessType">
			<asp:ListItem Value="0">WAIT (Waits for earlier process tasks)</asp:ListItem>
			<asp:ListItem Value="1">CLEAR (Clears earlier process tasks)</asp:ListItem>
			</asp:DropDownList>
		</td>
	</tr>
	<tr><td>Data can be viewed:</td>
		<td><asp:CheckBox runat="server" ID="DataCanView"/></td>
	</tr>
	<tr><td>Data can be edited:</td>
		<td><asp:CheckBox runat="server" ID="DataCanEdit"/></td>
	</tr>
	
	</table>
</Flux:ShadePadBox>
</Flux:Section>

<Flux:Section runat="server">
<Flux:PadBox CssClass="Pad5Button" runat="server">
	<asp:Button runat="server" ID="btnSave" Text="Save" OnClick="btnSave_Click"/>&nbsp;&nbsp;&nbsp;
	<asp:Button runat="server" ID="btnCancel" Text="Cancel" OnClick="btnCancel_Click" CausesValidation="False"/>
</Flux:PadBox>
</Flux:Section>

<!-- Validators -->
<asp:RequiredFieldValidator Runat="server" ControlToValidate="ProcessName" ErrorMessage="You must specify the name of this process" Display="None"/>
<asp:RequiredFieldValidator runat="server" ControlToValidate="Rank" ErrorMessage="You must specify a rank for this process" Display="None"/>
<asp:RangeValidator runat="server" ControlToValidate="Rank" ErrorMessage="You must specify a valid whole number for the rank" Display="None" MinimumValue="-1000000" MaximumValue="1000000000" Type="Integer" />

</Flux:HostTable>
</form>
</body>
</html>
